[qemu] Disable qemu's acpi support.
authorchris@kneesaa.uk.xensource.com <chris@kneesaa.uk.xensource.com>
Wed, 9 Aug 2006 18:57:03 +0000 (19:57 +0100)
committerchris@kneesaa.uk.xensource.com <chris@kneesaa.uk.xensource.com>
Wed, 9 Aug 2006 18:57:03 +0000 (19:57 +0100)
Based on a patch from: Wang, Winston L <winston.l.wang@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
tools/ioemu/hw/pc.c

index 6bd7288b256a3ecb989bcee4022d0e252c9cb193..7dd1f75203ebb71e5b51a143a2e49e398f4ee36f 100644 (file)
@@ -885,9 +885,11 @@ static void pc_init1(uint64_t ram_size, int vga_ram_size, int boot_device,
         usb_uhci_init(pci_bus, piix3_devfn + 2);
     }
 
-    if (pci_enabled && acpi_enabled && 0) {
+#ifndef CONFIG_DM
+    if (pci_enabled && acpi_enabled) {
         piix4_pm_init(pci_bus, piix3_devfn + 3);
     }
+#endif /* !CONFIG_DM */
 
 #if 0
     /* ??? Need to figure out some way for the user to
@@ -910,8 +912,10 @@ static void pc_init1(uint64_t ram_size, int vga_ram_size, int boot_device,
     /* XXX: should be done in the Bochs BIOS */
     if (pci_enabled) {
         pci_bios_init();
+#ifndef CONFIG_DM
         if (acpi_enabled)
             acpi_bios_init();
+#endif /* !CONFIG_DM */
     }
 }